package ee.ttu.rakarh.commands;

import java.util.Collection;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import ee.ttu.rakarh.model.data.dao.PiceListStatusTypeDAO;
import ee.ttu.rakarh.model.data.dao.PiceListStatusTypeDAOImpl;
import ee.ttu.rakarh.model.data.entities.PriceListStatusType;

public class PrepareAddPriceListForm implements Command {

	@Override
	public Boolean execute(HttpServletRequest request,
			HttpServletResponse response) {
		PiceListStatusTypeDAO piceListStatusTypeDAO = new PiceListStatusTypeDAOImpl();
		Collection<PriceListStatusType> piceListStatusTypes = piceListStatusTypeDAO.getStatuses();
		request.setAttribute("piceListStatusTypes", piceListStatusTypes);
		return true;
	}

}
